package com.tianhui.consignortwofei.mvp.model.enty;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author fgs
 * @date 2020/9/21
 * @description
 **/
public class ProfileInfo implements Parcelable {
    public String avatar;
    public String account;
    public String name;
    public String birthday;
    public String sex;
    public String email;
    public String phone;
    //5
    public String roleid;
    //KH202009020001
    public String roleinfoid;
    public String area;
    public String deptid;
    public String status;
    public String version;
    public String id;
    public String createTime;
    public String createBy;
    public String modifyTime;
    public String modifyBy;
    public String dept;
    //集团客户 01 ;外部客户 02
    public String roleinfotype;
    public String roleinfoisaudit;


    public ProfileInfo() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.avatar);
        dest.writeString(this.account);
        dest.writeString(this.name);
        dest.writeString(this.birthday);
        dest.writeString(this.sex);
        dest.writeString(this.email);
        dest.writeString(this.phone);
        dest.writeString(this.roleid);
        dest.writeString(this.roleinfoid);
        dest.writeString(this.area);
        dest.writeString(this.deptid);
        dest.writeString(this.status);
        dest.writeString(this.version);
        dest.writeString(this.id);
        dest.writeString(this.createTime);
        dest.writeString(this.createBy);
        dest.writeString(this.modifyTime);
        dest.writeString(this.modifyBy);
        dest.writeString(this.dept);
        dest.writeString(this.roleinfotype);
        dest.writeString(this.roleinfoisaudit);
    }

    protected ProfileInfo(Parcel in) {
        this.avatar = in.readString();
        this.account = in.readString();
        this.name = in.readString();
        this.birthday = in.readString();
        this.sex = in.readString();
        this.email = in.readString();
        this.phone = in.readString();
        this.roleid = in.readString();
        this.roleinfoid = in.readString();
        this.area = in.readString();
        this.deptid = in.readString();
        this.status = in.readString();
        this.version = in.readString();
        this.id = in.readString();
        this.createTime = in.readString();
        this.createBy = in.readString();
        this.modifyTime = in.readString();
        this.modifyBy = in.readString();
        this.dept = in.readString();
        this.roleinfotype = in.readString();
        this.roleinfoisaudit = in.readString();
    }

    public static final Creator<ProfileInfo> CREATOR = new Creator<ProfileInfo>() {
        @Override
        public ProfileInfo createFromParcel(Parcel source) {
            return new ProfileInfo(source);
        }

        @Override
        public ProfileInfo[] newArray(int size) {
            return new ProfileInfo[size];
        }
    };
}
